An Abstract Data Type for Prioritized Items.
- A Priority Queue (PQ) is an abstract data type that operates like a regular queue but with a twist.
- Each element has an associated priority.
- Elements with higher priority are served before elements with lower priority.
- If two elements have the same priority, their relative order is undefined (or could be First-In, First-Out).